<template>
  <div>
    <div v-for="(val, index) in arr" :key="index" style="display: inline-block">
      <input type="checkbox" :value="val" id="index" v-model="myli" />{{ val }}
    </div>
    <ul>
      <li v-for="val in myli" :key="val">{{ val }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "新闻"],
      myli: [],
    };
  },
};
</script>

<style>
</style>